﻿using Sustainalytics.ClientDW.Entities;
using System.Collections.Generic;
using System.Linq;

namespace Sustainalytics.GCCS.Service
{
    public class GCPrincipleEventIndicatorImpactDto : GCPrincipleEventIndicatorDto
    {
        public List<string> ImpactComments { get; set; }
        public string ImpactSummary { get; set; }


        public virtual GCPrincipleEventIndicatorImpactDto LoadFrom(GCPrincipleEventIndicatorImpact data)
        {
            base.LoadFrom(data);

            this.ImpactComments = data.ImpactComments == null ? null : data.ImpactComments.Select(el => el).ToList();
            this.ImpactSummary = data.ImpactSummary;

            return this;
        }
    }
}
